package com.xindaoapp.happypet.bean;

import java.io.Serializable;
import java.util.List;

public class MainZuixinData implements Serializable {

    public String result;
    public String msg;
    public String total;
    public List<MainTiezi> array;

    public Foruminfo foruminfo;



    public class Foruminfo implements Serializable {
        public String fid;// 论坛id
        public String name;// 论坛名称
        public String posts;// 帖子数
        public String moderators;// 版主
        public String membernum;// 圈子人数
        public String description;// 圈子描述
        public String apprules;// 版规
        public List<Banzhu> banzhuarray;// 版主信息
        public String isjoin;// 是否加入圈子
        public String ico;// 论坛图标

        public List<Banzhu> darenarray;// 达人列表

        public Foruminfo() {
            super();
            // TODO Auto-generated constructor stub
        }
    }

    public class MainTiezi implements Serializable {
        public String addtime;
        public String coverpath;
        public String dateline;
        public String updatetime;
        public String message;
        public String replies;
        public String subject;
        public String tid;
        public String views;
        public String userface;
        public String author;
        public String authorid;
        public String lastpost;
        public String fid;
        public String recommend_add;// 赞的数量
        public String heats;
        public String digest;
        public String attachment;
        public String status;
        public String displayorder;
        public String special;
        public String tisheng;
        public String isvideo;
        public String videocover;
        public String recommendtotal;
        public String recommendmy; // 本人是否赞过 1 赞 0 未赞
        public String picnum;
        public String forumname;


        public List<Pic> pics;

        public List<RecommendPerson> recommendarray;

        public class RecommendPerson implements Serializable {
            public String tid;
            public String recommenduid;
            public String dateline;
            public String username;
            public String userface;

            public RecommendPerson() {
                super();
                // TODO Auto-generated constructor stub
            }
        }


        public class Pic implements Serializable {

            public String aid;
            public String tid;
            public String cover;
            public String width;
            public String height;
            public String url;

            public Pic() {
                super();
                // TODO Auto-generated constructor stub
            }


        }

        public MainTiezi() {
            super();
            // TODO Auto-generated constructor stub
        }

        @Override
        public boolean equals(Object obj) {
            // TODO Auto-generated method stub
            // 待比较的两个对象是同一个对象，直接返回true
            if (this == obj) {
                return true;
            }
            // 只有当obj是Person对象
            if (obj != null && obj.getClass() == MainTiezi.class) {
                MainTiezi oTiezi = (MainTiezi) obj;
                // 并且当前对象的tid与obj对象的tid相等才可判断两个对象相等
                if (this.tid.equals(oTiezi.tid)) {
                    return true;
                }
            }
            return false;
        }

    }

}
